package com.ruoyi.project.rest.trade.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 交易纪录对象 rest_member_trade
 * 
 * @author ruoyi
 * @date 2022-03-28
 */
public class RestMemberTrade extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 会员编号 */
    @Excel(name = "会员编号")
    private String memberNo;

    /** 交易类型 */
    @Excel(name = "交易类型")
    private Integer type;

    /** 交易前金额 */
    @Excel(name = "交易前金额")
    private BigDecimal beforeMoney;

    /** 交易金额 */
    @Excel(name = "交易金额")
    private BigDecimal money;

    /** 交易后金额 */
    @Excel(name = "交易后金额")
    private BigDecimal afterMoney;

    private String orderNo;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMemberNo(String memberNo)
    {
        this.memberNo = memberNo;
    }

    public String getMemberNo()
    {
        return memberNo;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setBeforeMoney(BigDecimal beforeMoney)
    {
        this.beforeMoney = beforeMoney;
    }

    public BigDecimal getBeforeMoney()
    {
        return beforeMoney;
    }
    public void setMoney(BigDecimal money)
    {
        this.money = money;
    }

    public BigDecimal getMoney()
    {
        return money;
    }
    public void setAfterMoney(BigDecimal afterMoney)
    {
        this.afterMoney = afterMoney;
    }

    public BigDecimal getAfterMoney()
    {
        return afterMoney;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberNo", getMemberNo())
            .append("type", getType())
            .append("beforeMoney", getBeforeMoney())
            .append("money", getMoney())
            .append("afterMoney", getAfterMoney())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .toString();
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }
}
